const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath:'./',
  devServer: {
    open: true,
    host:"127.0.0.1",
    proxy: {
      "/douyu": {
        // 不一定非得写域名/一般是写 所有接口前面 都一样的 部分/url
        target: "https://m.douyu.com",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/douyu": "",
        },
      },
    }

  }
})
